<?php
declare (strict_types=1);

namespace app\admin\validate;

use think\Validate;

class Config extends Validate
{
    protected $rule = [
        'name' => 'require|unique:config',
        'title' => 'require',
        'remark' => 'require',
        'type' => 'require',
        'group' => 'require'
    ];

    protected $message = [
        'name.require' => '请输入配置标识',
        'name.unique' => '配置标识已被占用',
        'title.require' => '请输入配置标题',
        'remark.require' => '请输入配置描述',
        'type.require' => '请选择配置类型',
        'group.require' => '请选择配置分组'
    ];
}